package yc.star.forum.model;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Schema(description = "站内信息")
@Data
public class Message {
    private Long id;

    @Schema(description = "发送者")
    private Long postUserId;

    @Schema(description = "接收者")
    private Long receiveUserId;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "状态")
    private Byte state;

    @Schema(description = "是否删除")
    private Byte deleteState;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    // 关联系对象 - 用户
    @Schema(description = "发送者用户信息")
    private User postUser;

}